#pragma once

#include "ScriptCompiler/ASTBuilder/ASTBuilder.h"

class CSentenceIndexerNode;

class CSentenceIndexerBuilder : public IASTBuilder
{
public:
    CSentenceIndexerBuilder(std::shared_ptr<CScriptFileContext> InContext);

    //return true even if not found property indexer
    virtual bool ReadCurentToken() override;

    //if not found property indexer, will be nullptr
    std::shared_ptr<CSentenceIndexerNode> Result;

protected:
    std::shared_ptr<CScriptFileContext> Context;

};